package com.it.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.it.entity.dispatch.AiClaimDispatch;
import com.it.entity.survey.AiSurveyReport;
import com.it.vo.AiSurveyReportVo;
import com.it.vo.ReportVo;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yzy
 * @since 2025年09月20日
 */
@Mapper
public interface AiSurveyReportMapper extends BaseMapper<AiSurveyReport> {


    List<ReportVo> select(ReportVo reportVo);

    List<AiClaimDispatch> selectDispatchList(String reportId);

    void updateStatus(int dispatchId, LocalDateTime localDateTime);

    void rejectedDispatch(int dispatchId, LocalDateTime localDateTime, String cancelReason);

    void addSurvey(String surveyInWorkNo, String reportNo);

    List<AiSurveyReportVo> selectDispatch(String reportId);

    void updateStatusB(String reportId);

    void updateByReportNo(AiSurveyReport aiSurveyReport);

}
